﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WqLunTan.Models.DataBase
{
    [Table("site_config")]
    public class site_config : BaseUpdateEntity
    {

        /// <summary>
        /// 修改人
        /// </summary>
        public Guid uid { get; set; }

        /// <summary>
        /// 配置项的key, 唯一索引
        /// </summary>
        [MaxLength(255)]
        [Required(AllowEmptyStrings = true)]
        public string config_key { get; set; }

        /// <summary>
        /// 配置项的分类
        /// </summary>
        [MaxLength(255)]
        [Required(AllowEmptyStrings = true)]
        public string config_category { get; set; } = string.Empty;

        /// <summary>
        /// 描述
        /// </summary>
        [MaxLength(255)]
        [Required(AllowEmptyStrings = true)]
        public string description { get; set; } = string.Empty;

        /// <summary>
        /// 配置内容, 一般为json格式字符串, 也有可能是文本内容
        /// </summary>
        [Required(AllowEmptyStrings = true)]
        public string config_value { get; set; } = string.Empty;
    }
}
